#ifndef __BUZZER_H
#define __BUZZER_H

#include <types.h>

struct buzzer {
	u32 freq: 24,   /* 100M/(2 * freq) */
	    time:  8;   /* 1/64 sec */
};

inline int buzzer_init(void);
inline void buzzer_exit(void);
inline int buzzer_write(struct buzzer *bz);
inline int buzzer_read(struct buzzer *bz);

#endif
